import {TypeScriptCourse} from "./TypeScriptCourse";
import {TypeScriptDiscountCourse} from "./TypeScriptDiscountCourse";

const typeScriptCourseService:ICourse = new TypeScriptCourse(1, 'TypeScript Fundamentals', 2999);
const discountCourse:ICourse = new TypeScriptDiscountCourse(1, 'TypeScript Fundamentals', 2999);

console.log(typeScriptCourseService.getId());    // 输出: 1
console.log(typeScriptCourseService.getName());  // 输出: TypeScript Fundamentals
console.log(typeScriptCourseService.getPrice())
console.log(typeScriptCourseService.getPriceInDollars())
console.log(discountCourse.getId());    // 输出: 1
console.log(discountCourse.getName());  // 输出: TypeScript Fundamentals
console.log(discountCourse.getPrice())
console.log(discountCourse.getPriceInDollars())